package com.lightboat.common.constant;

/**
 * 通用常量信息
 *
 * @author lightboat
 */
public class RedisConstants {

    /**
     * 锁前缀
     */
    public static final String LOCK_PREFIX = "lock:";

    /**
     * 订单前缀
     */
    public static final String ORDER_PREFIX = LOCK_PREFIX + "order:";
    /**
     * 商品前缀
     */
    public static final String PRODUCT_PREFIX = LOCK_PREFIX + "product:";

    /**
     * 商品库存锁
     */
    public static final String STOCK_PREFIX = LOCK_PREFIX + "stock:";
    /**
     *
     * 同步商品前缀
     */
    public static final String SYNC_PRODUCT_PREFIX = LOCK_PREFIX + "sync:product:";
}
